package com.fortune.service;

import com.fortune.dto.in.cOrderMgt.COrderAddDto;
import com.fortune.dto.in.cOrderMgt.COrderEditDto;
import com.fortune.dto.in.cOrderMgt.COrderListDto;
import com.fortune.vo.cOrderMgt.COrder;
import com.fortune.vo.cOrderMgt.COrderBiller;
import com.fortune.vo.cOrderMgt.COrderDetails;
import com.fortune.vo.cOrderMgt.COrderDriver;

import java.util.List;

public interface COrderBaseService {
    /**
     * 查询客户订单列表
     * @param companyId
     * @param dealerId
     * @param listDto
     * @return
     */
    List<COrder> queryOrderBaseList(String companyId, String dealerId, COrderListDto listDto);

    /**
     * 查询客户订单列表个数
     * @param companyId
     * @param dealerId
     * @param listDto
     * @return
     */
    int queryOrderBaseListCount(String companyId, String dealerId, COrderListDto listDto);

    /**
     * 添加客户订单
     * @param companyId
     * @param dealerId
     * @param addDto
     * @return
     */
    int addOrderBase(String companyId,String dealerId,COrderAddDto addDto);

    /**
     * 编辑客户订单
     * @param companyId
     * @param dealerId
     * @param editDto
     * @return
     */
    int editOrderBase(String companyId,String dealerId,COrderEditDto editDto);

    /**
     * 删除客户订单
     * @param companyId
     * @param dealerId
     * @param orderId
     * @param clientId
     * @return
     */
    int deleteOrderBase(String companyId,String dealerId,String orderId,String clientId);

    /**
     * 批准发货
     * @param companyId
     * @param dealerId
     * @param orderId
     * @param clientId
     * @return
     */
    int updateApproved(String companyId,String dealerId,String orderId,String clientId);

    /**
     * 详情
     * @param companyId
     * @param dealerId
     * @param orderId
     * @param clientId
     * @return
     */
    COrderDetails queryDetails(String companyId,String dealerId,String orderId,String clientId);

    /**
     * 查询经销商司机
     * @param companyId
     * @param dealerId
     * @param driverId
     * @return
     */
    List<COrderDriver> queryDriverList(String companyId,String dealerId,String driverId);

    /**
     * 开单人信息
     * @param companyId
     * @param dealerId
     * @param userId
     * @return
     */
    COrderBiller queryBiller(String companyId,String dealerId,String userId);
}
